package com.teoresi.sb.db.dao;

import org.apache.ibatis.session.SqlSession;

import com.teoresi.sb.db.MyBatisConnectionFactory;

public class DAOSupport {
	
	protected SqlSession session;

	protected void openSession() {
		session = MyBatisConnectionFactory.getSqlSessionFactory().openSession();
	}
	
	protected void closeSession() {
		session.close();
	}
	
	protected void commitSession() {
		session.commit();
	}

}
